<template>
	<view>
		<view class="smart-container"> 1.组件</view>
		<view class="smart-panel-h">
			<navigator url="/pages/IntentPage/IntentPage">组件传值</navigator>
		</view>
		<view class="smart-panel-h">
			<navigator url="/pages/Custom/cardViewPage/cardViewPage">置顶组件</navigator>
		</view>
		<view class="smart-panel-h">
			<navigator url="/pages/Custom/NewsListPage/NewsListPage">新闻组件</navigator>
		</view>
	</view>
	<view>
		<view class="smart-container">2.容器</view>
		<view class="smart-panel-title" @click="goDetailPage('view')"><text>view视图</text></view>
		<view class="smart-panel-h" @click="goDetailPage('scroll-view')"><text>scrooll-view滑动视图</text></view>
		<view class='smart-panel-h' @click="goDetailPage('swipter')"><text>swiper可滑动视图</text></view>
		<view class="smart-container">2.基础内容</view>
		<view class="">
			text文本编辑
		</view>
		<view class="">
			icon图标
		</view>
		<view class="smart-container">4.表单组件</view>
		<view class="">
			button按钮
		</view>
		<view class="">
			checkbox多选择框
		</view>
		<view class="">
			label标签组件
		</view>
		<view class="">
			input输入框
		</view>
		<view class="">
			textarea多行文本输入框
		</view>
		<view class="">
			form表单
		</view>
		<view class="smart-container">5.组件</view>
		<view class="">
			navigator
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetailPage(e) {
				if (typeof e === 'string'){
					uni.navigateTo({
						url:'/pages/components/' + e + '/' + e
					});
				}else{
					uni.navigateTo({
						url: e.url
					});
				}
			}
		}
	}
</script>
<style>

</style>
